<?php

namespace App\Datalog\Events;

use App\Models\Log\LogUserRoleLogin;

class RoleLoginEventLog extends EventLog
{
    // 日志名称
    protected $name = 'role-login';

    protected $eventId = 2003;

    public function addLog(LogUserRoleLogin $log)
    {
        $params = $log->toArray();
        $this->addEventLog($params['user_id'], $params['create_time'], $params);
    }
}
